package com.sky.mapper.user;

import com.sky.pojo.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface OrderDetailMapper {
    /**
     * 批量插入订单明细数据
     * @param
     */
    void insertBatch(List orderDetails);

    /**
     * 根据订单id查询订单明细
     * @param id
     * @return
     */
    List<OrderDetail> selectByOrderId(Long id);
}
